package com.gcs.application.gui;

import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;

import com.gcs.application.gui.views.ConnectionView;
import com.gcs.application.gui.views.LogView;
import com.gcs.application.gui.views.MessageRuntimeView;

public class Perspective implements IPerspectiveFactory {

	public void createInitialLayout(IPageLayout layout) {
		String editorArea = layout.getEditorArea();
		
		layout.setEditorAreaVisible(false);
		layout.setFixed(false);
		
		layout.addStandaloneView(LogView.ID, true, IPageLayout.BOTTOM, 0.7f, editorArea);
		layout.addStandaloneView(MessageRuntimeView.ID, true, IPageLayout.RIGHT, 0.7f, editorArea);	
		layout.addStandaloneView(ConnectionView.ID,  true, IPageLayout.LEFT, 0.3f, editorArea);
	}
}
